Finding the day of the week

December 29, 2007 · 81 views · 0 comments

Finding the day of the week
taken by : Dedric Mauriac on Woodbridge (87, 97, 23)
blogHUD!

About

Date and Time functions are always tricky once you need to discover other information besides the year, month, day, hour, minute, and second. There are no methods to work with adding and subtracting days or finding out what the current timezone offset is. I started to work on my week day bar chart and ran into a problem with determining what day of the week it was. I found some code on the wiki but found that it didn't compensate for daylight savings. I made my own version and posted the source. Plus there is a nice box waiting for anyone who wants to take a copy in my shop. From Dedric Mauriac via blogHUD.com